package com.example.demo.controller;

import com.example.demo.Dto.T2;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/test")
public class TestController {
    @PostMapping(value = "t1")
    public Map<String, Object> test(@RequestBody Map<String, Object> a) {
        return a;
    }

    @PostMapping(value = "t2")
    public Map<String, Object> test2(@RequestBody T2 a) {
        return new HashMap<>();
    }
}
